﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.SqlClient;

namespace QuanLyChoVay
{
    class connect
    {
        string strConn;
        SqlConnection conn;
        public connect()
        {
           // strConn = "server = TRANCUNG-LAP; database =QLDA; user id = sa; password= 123456;";
            strConn = "Server = TIGER-PC\\SQLEXPRESS; Database = QLDA; Trusted_Connection = True;";
            conn = new SqlConnection(strConn);
            conn.Open();
        }
        public SqlConnection getconnect()
        {
            return conn;
        }
        public void Close()
        {
            conn.Close();
        }
    }
}
